import axios from 'axios'
import {baseUrl} from '../config.js'
//详情信息请求
let detailDate=(id,cb)=>{
 return new Promise(resolve=>{
     axios.get(`${baseUrl}/detail?id=${id}`).then(result=>{
        resolve(result.data);
     })
 })
}
//关键字查询
let searchDate=kw=>{
    return new Promise(resolve=>{        
        axios.get(`${baseUrl}/search?kw=${kw}`).then(result=>{
            resolve(result.data);
        })
    })
   }
export{
    detailDate,searchDate
}